package com.ants.boot.utils;

import java.util.regex.Pattern;

/**
 * @author 蚂蚁会花呗
 * @date 2022/2/24 10:21
 */
public class Constants {

    /**
     * request header 中的token 名字
     */
    public static final String JWT_TOKEN_NAME = "Authorization";


    /** 菜单类型（目录） */
    public static final String TYPE_DIR = "M";

    /** 菜单类型（菜单） */
    public static final String TYPE_MENU = "C";

    /** 菜单类型（按钮） */
    public static final String TYPE_BUTTON = "F";

    /** Layout组件标识 */
    public final static String LAYOUT = "Layout";

    /** ParentView组件标识 */
    public final static String PARENT_VIEW = "ParentView";

    /**
     * 空白字符串
     */
    public static final String EMPTY = "";

    /**
     * 常用图片格式
     */
    public static final String REG_IMG_FORMAT = "^.+(.JPEG|.jpeg|.JPG|.jpg|.PNG|.png|.GIF|.gif)$";
    public static final Pattern PATTERN_IMG_FROMAT = Pattern.compile(REG_IMG_FORMAT);



}
